package com.chefu.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chefu.system.pojo.Emp;
import com.chefu.system.pojo.Role;
import com.chefu.system.pojo.User;
import com.chefu.system.vo.UserVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author goodgoodstudy
 * @since 2021-03-30
 */
public interface UserService extends IService<User> {

    List<UserVo> findByPage(Integer page, Integer pageSize, String username, String name, String phone);

    List<Emp> findAll();

    List<Role> findAllRole();

    void create(Long roleId, User user);

    User findById(Long id);

    void updateByUser(Long roleId, User user);

    void lock(Long userId, Integer status);

    User findUserByNameAndPwd(String username, String password);
}
